<div class="box box-info">
    <div class="box-header with-border">
        <h3 class="box-title">订单批量发货回传</h3>
        <div class="box-tools">
            <div class="btn-group float-right" style="margin-right: 10px">
                <a href="{{ route('admin.orders.index') }}" class="btn btn-sm btn-default"><i class="fa fa-list"></i> 列表</a>
            </div>
        </div>
    </div>
    <div class="box-body">
        <form action="/admin/orders/deliveries/import" method="post" class="form-inline">{{ csrf_field() }}
            <table class="table table-bordered">
                <tr>
                    <td>
                        <b>注意事项:</b><br>
                        1. 发货输入格式：<b>订单ID 订单编号 快递名称 快递单号</b><br>
                        2. 请务必按照格式输入发货记录，否则发货无效<br>
                        3. 最多不可超过500条/次，超出部分系统直接忽略不再提示<br>
                        4. 满足条件记录直接发货，失败记录请在最近一次失败记录核对<br>
                        5. 已发货记录若被再次提交同样会被标记为发货失败记录<br>
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea
                            name="rows"
                            rows="20"
                            cols="120"
                            value=""
                            class="form-control"
                            placeholder="1024 20210810110532878891 快递名称 000000000000"
                        ></textarea>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>最近一次失败记录：</b><br><hr>
                        @if(session()->has('failed_deliveries'))
                            @foreach(session()->get('failed_deliveries') as $fail)
                                {{ json_encode($fail) }}<br>
                            @endforeach
                        @endif
                    </td>
                </tr>
                <tr>
                    <td>
                        <button type="submit" class="btn btn-success" id="ship-btn">批量发货</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
